package com.subsequent.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 处方明细表
 * @TableName prescription_items
 */
@TableName(value ="prescription_items")
@Data
public class PrescriptionItems implements Serializable {
    /**
     * 明细ID
     */
    @TableId(type = IdType.AUTO)
    private Integer itemId;

    /**
     * 处方ID
     */
    private Integer prescriptionId;

    /**
     * 药品ID
     */
    private Integer medicineId;

    /**
     * 单次用量
     */
    private String dosage;

    /**
     * 用法(口服/外用等)
     */
    private String usageMethod;

    /**
     * 用药频次
     */
    private String frequency;

    /**
     * 用药时长
     */
    private String duration;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 总用量
     */
    private String totalDosage;

    /**
     * 备注
     */
    private String notes;

    /**
     * 创建时间
     */
    private Date createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}